import http from '../utils/http'

let requestUrl = "article"

export default {
    // 查询文章列表
    getArticleList(pageNum, pageSize) {
        return http.requestGet(`${requestUrl}/getArticleList`, {pageNum: pageNum, pageSize: pageSize})
    },
    // 查询文章详情
    getArticleDetail(id) {
        return http.requestGet(`${requestUrl}/getArticleDetail/${id}`)
    },
    // 查询归档列表
    getArchiveList() {
        return http.requestGet(`${requestUrl}/getArchiveList`)
    }
}